package com.haiya;

import com.google.common.eventbus.EventBus;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * @author qiaoguoqiang
 */
@EnableDiscoveryClient
@SpringBootApplication
public class CargoApp {
    public static void main(String[] args) {
        SpringApplication.run(CargoApp.class, args);
    }

    @Bean
    public EventBus configEvent() {
        EventBus eventBus = new EventBus();
        return eventBus;
    }
}